package com.bachelor.community.service.intf;

import com.bachelor.community.model.entity.QuestionTagRelation;
import com.bachelor.community.model.entity.Tag;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Set;

public interface QuestionTagService extends IService<QuestionTagRelation> {
    /**
     * 获取Question Tag 关联记录
     *
     * @param questionId 问题ID
     * @return
     */
    List<QuestionTagRelation> selectByQuestionId(Long questionId);

    /**
     * 创建中间关系
     * @param id
     * @param tags
     * @return
     */
    void createQuestionTag(Long id, List<Tag> tags);

    /**
     * 获取标签换脸话题ID集合
     * @param id
     * @return
     */
    Set<Long> listQuestionIdsByTagId(Integer id);
}
